#主动技能【恶魔附身】
effect give @s instant_damage 1 0
effect give @s poison 4 3 true
clear @s iron_sword
clear @s arrow
clear @s tipped_arrow
clear @s leather_helmet
clear @s leather_chestplate
clear @s leather_leggings
clear @s leather_boots

execute if score @s SystemDeath matches 1.. run tellraw @a [{"text":"玩家 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"selector":"@s","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 被","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 冥火恶魔吞噬了","color":"red","bold":true,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

give @s minecraft:diamond_sword{AttributeModifiers:[{Operation: 0, Amount: +7.5, UUID: [I; 498093726, 57138631, -282333160, 1007201224], Slot: mainhand, AttributeName: "generic.attack_damage", Name: "generic.attackDamage"},{Operation: 0, Amount: -3.2d, UUID: [I; 625287382, 551663304, -429720795, -1357459951], Slot: mainhand, AttributeName: "generic.attack_speed", Name: "generic.attackSpeed"}],display:{Name:'[{"text":"附魔火刃","color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]',Lore:['{"text":"被动技能【附魔火刃】","color":"dark_purple","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"每次攻击对前方造成范围灼烧","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"具体范围参照特效产生位置","color":"dark_green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']},Enchantments:[{id:"minecraft:fire_aspect",lvl:2},{id:"minecraft:knockback",lvl:1}],Unbreakable:1} 1

give @s minecraft:bow{Damage:384,display:{Name:'[{"text":"火焰玄学","color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]',Lore:['{"text":"被动技能【冥火附魔】","color":"dark_purple","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"射出附带冥火燃烧的箭，称为“恶魔化身”","color":"dark_green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"若【恶魔化身】未命中敌人，落地时燃烧地面","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"若【恶魔化身】未落地则在箭射出3秒后燃烧","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"并使半径3格范围内留下燃烧的黑色火焰4s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"经过冥火的敌人持续受到凋零III 3s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']},Enchantments:[{id:"minecraft:flame",lvl:1},{id:"minecraft:power",lvl:1},{id:"minecraft:punch",lvl:2}]} 1

give @s minecraft:experience_bottle{display:{Name:'[{"text":"关闭技能：恶魔附身","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]',Lore:['{"text":"主动技能【恶魔附身】","color":"dark_purple","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"关闭【恶魔附身】","color":"blue","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"主动关闭回复4血量","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}','{"text":"2s后可再次开启","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']},Enchantments:[{id:"minecraft:loyalty",lvl:10}]} 1

give @s minecraft:spectral_arrow{display:{Name:'[{"text":"恶魔化身","color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]'}} 1


item replace entity @s armor.chest with minecraft:leather_chestplate{AttributeModifiers: [{Operation: 0, Amount: +10, UUID: [I; 609008418, 373024988, -436054862, -415446588], Slot: chest, AttributeName: "generic.knockback_resistance", Name: "generic.knockbackResistance"}, {Operation: 0, Amount: +4, UUID: [I; 640283279, -1563893329, -267396540, 803666999], Slot: chest, AttributeName: "generic.armor", Name: "generic.armor"}], Unbreakable: 1, display: {color: 11665578}} 1

item replace entity @s armor.legs with minecraft:leather_leggings{AttributeModifiers: [{Operation: 0, Amount: +10, UUID: [I; 525861562, -2020860311, -439037067, 355624458], Slot: legs, AttributeName: "generic.knockback_resistance", Name: "generic.knockbackResistance"}, {Operation: 0, Amount: +3, UUID: [I; 646872580, 393711109, -346652169, 1948316556], Slot: legs, AttributeName: "generic.armor", Name: "generic.armor"}], Unbreakable: 1, display: {color: 11665578}} 1

item replace entity @s armor.feet with minecraft:leather_boots{AttributeModifiers: [{Operation: 0, Amount: +10, UUID: [I; 671010808, 1067457450, -465245736, 1146003960], Slot: feet, AttributeName: "generic.knockback_resistance", Name: "generic.knockbackResistance"}, {Operation: 0, Amount: +2, UUID: [I; 692654864, 1023930249, -366042080, 1134669739], Slot: feet, AttributeName: "generic.armor", Name: "generic.armor"}], Unbreakable: 1, Enchantments: [{id: "minecraft:blast_protection", lvl: 3}, {id: "minecraft:fire_protection", lvl: 2}, {id: "minecraft:protection", lvl: 2}, {id: "minecraft:binding_curse", lvl: 1}], display: {color: 11665578}} 1

scoreboard players set @s skJump 0
scoreboard players set @s Diamond_sword0 0
scoreboard players set @s skBow1 0
scoreboard players set @s skEXBottle 2

#主动技能【恶魔附身】特效
execute rotated ~ 0 run particle witch ~ ~2 ~ 2 2 2 0.01 300 normal @a

execute rotated ~ 0 positioned ^0.8 ^1 ^1.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.1 ^1 ^1.1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.3 ^1 ^0.7 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.5 ^1 ^0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.65 ^1 ^ run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.35 ^1 ^-0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1 ^1 ^-0.6 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^0.6 ^1 ^-0.9 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^0.3 ^1 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^ ^1 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.8 ^1 ^1.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.1 ^1 ^1.1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.3 ^1 ^0.7 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.5 ^1 ^0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.35 ^1 ^-0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1 ^1 ^-0.6 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.6 ^1 ^-0.9 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.3 ^1 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a


execute rotated ~ 0 positioned ^ ^1.5 ^-1.1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^ ^2 ^-1.2 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a

execute rotated ~ 0 positioned ^0.8 ^2.5 ^1.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.1 ^2.5 ^1.1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.3 ^2.5 ^0.7 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.5 ^2.5 ^0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.65 ^2.5 ^ run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.35 ^2.5 ^-0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1 ^2.5 ^-0.6 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^0.6 ^2.5 ^-0.9 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^0.3 ^2.5 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^ ^2.5 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.8 ^2.5 ^1.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.1 ^2.5 ^1.1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.3 ^2.5 ^0.7 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.5 ^2.5 ^0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.35 ^2.5 ^-0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1 ^2.5 ^-0.6 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.6 ^2.5 ^-0.9 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.3 ^2.5 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a


execute rotated ~ 0 positioned ^ ^3 ^-1.1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^ ^3.6 ^-1.2 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a

execute rotated ~ 0 positioned ^0.8 ^4.2 ^1.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.1 ^4.2 ^1.1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.3 ^4.2 ^0.7 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.5 ^4.2 ^0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.65 ^4.2 ^ run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1.35 ^4.2 ^-0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^1 ^4.2 ^-0.6 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^0.6 ^4.2 ^-0.9 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^0.3 ^4.2 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^ ^4.2 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.8 ^4.2 ^1.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.1 ^4.2 ^1.1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.3 ^4.2 ^0.7 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.5 ^4.2 ^0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1.35 ^4.2 ^-0.3 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-1 ^4.2 ^-0.6 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.6 ^4.2 ^-0.9 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
execute rotated ~ 0 positioned ^-0.3 ^4.2 ^-1 run particle dragon_breath ~ ~ ~ 0.1 0.1 0.1 0.01 20 normal @a
